package com.huishu.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huishu.commons.pojo.vo.UserOrderInfoVO;
import com.huishu.order.pojo.dto.ConsoleDataDTO;
import com.huishu.order.pojo.dto.PageListDTO;
import com.huishu.order.pojo.model.OrderDO;
import com.huishu.order.pojo.vo.PageListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author generator@ljj
 * @since 2023-04-07
 */
public interface OrderMapper extends BaseMapper<OrderDO> {


    IPage<PageListVO> pageList(Page<PageListVO> page, @Param("params") PageListDTO pageListDTO);


    Map<String, Object> consoleConut();


    List<Map<String, Object>> consoleData(@Param("params") ConsoleDataDTO consoleDataDTO);

    /**
     * 获取用户订单信息
     * @param ids
     * @return
     */
    List<UserOrderInfoVO> getOrderInfoByUserIds(@Param("ids") List<Long> ids);
}
